<script>
	export default {
		onLaunch: function() {
			console.warn('当前组件仅支持 uni_modules 目录结构 ，请升级 HBuilderX 到 3.1.0 版本以上！')
			console.log('App Launch')
			try {
				// var res = uni.getSystemInfoSync() || '';
				const deviceInfo = uni.getDeviceInfo()
				const systemSetting = uni.getSystemSetting()
				const appAuthorizeSetting = uni.getAppAuthorizeSetting()
				const windowInfo = uni.getWindowInfo()
				const appBaseInfo = uni.getAppBaseInfo()
				
				let res={...deviceInfo,...systemSetting,...appAuthorizeSetting,...windowInfo,...appBaseInfo}
				uni.setStorageSync('sysinfo', res || '');
				console.log('sysinfo1', windowInfo);
			} catch (e) {
				console.log('微信官方记录错误日志');
			}
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import '@/colorui/icon.css';
	@import '@/colorui/aconfont.css';
	@import '@/colorui/main.css';
	@import '@/colorui/mineCommon.scss';
	@import '@/uni_modules/uni-scss/index.scss';
	
	/* #ifndef APP-NVUE */
	// @import '@/static/customicons.css';
	// 设置整个项目的背景色
	page {
		background-color: #f5f5f5;
	}

	/* #endif */
	.example-info {
		font-size: 14px;
		color: #333;
		padding: 10px;
	}
</style>
